package com.why.simpleboot.core.annotation.applicationcontext;

import com.why.simpleboot.core.boot.starter.SimpleBootNettyStarter;
import com.why.simpleboot.core.boot.starter.SimpleBootStarter;

import java.lang.annotation.*;

/**
 * @program: why-simpleboot
 * @description:当@Inherited加在某个类A上时，假如类B继承了A，则B也会带上该注解
 * @author: @why
 * @create: 2021-05-21 09:51
 **/

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface EnableSimpleBootApplication {
    /**
     * 指定启动的服务器，默认是netty
     * @see SimpleBootStarter
     * @return
     */
    Class<? extends SimpleBootStarter> ServerStarter() default SimpleBootNettyStarter.class;
}
